package com.sun;

public class Son01 extends Father01{

	private int i = test();
    //静态类变量显示赋值代码
	private static int j = method();
     //静态代码块
	static {
		System.out.println("(6)");
	}
 //构造器
	Son01(){
		System.out.println("(7)");
	}
 //非静态代码块
	{
		System.out.println("(8)");
	}
 //非静态方法
	public int test() {
		System.out.println("(9)");
		return 1;
	}
 //静态方法
	public static int method(){
		System.out.println("(10)");
		return 1;
	}
 //主方法
	public static void main(String[] args) {
		Son01 s1 = new Son01();
		System.out.println("------");
		Son01 s2 = new Son01();
	}
}
